//
//  HBBaseListViewController.h
//  HeartBeat
//
//  Created by karong on 2023/8/23.
//

#import "HBBaseController.h"

NS_ASSUME_NONNULL_BEGIN
@protocol ListViewProtocol <NSObject>
- (UIScrollView *)listView;
- (void)refreshData;
- (BOOL)disableAutoBeginRefresh;
@end

@interface HBBaseListViewController : HBBaseController <ListViewProtocol, DZNEmptyDataSetSource, DZNEmptyDataSetDelegate>
@property (nonatomic, assign) HBListViewEmptyState emptyState; // 显示空状态
@property (nonatomic, assign, getter=isLoading) BOOL loading;   // 是否正在加载
- (void)setEmptyStateTitle:(NSString *)title state:(HBListViewEmptyState)state;
- (void)setEmptyStateImage:(NSString *)image state:(HBListViewEmptyState)state;

@end

NS_ASSUME_NONNULL_END
